<!-- Content Wrapper. Contains page content -->
  <div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
      <h1>
        联系我们
        <small>Control panel</small>
      </h1>
      <ol class="breadcrumb">
        <li><a href="#"><i class="fa fa-dashboard"></i> 控制台</a></li>
        <li class="active">联系我们</li>
      </ol>
    </section>



    <!-- Main content -->
    <section class="content">

      <div class="row">
        <div class="col-xs-12">
          <div class="box">
            <div class="box-header">
              <h3 class="box-title">Advertising  Table</h3>

              <div class="box-tools">

              </div>
            </div>
            <!-- /.box-header -->
            <div class="box-body table-responsive no-padding">
              <form action="{:url('admin/contact/delall')}" method="post">
              <table class="table table-hover">
                <tbody><tr>
                  <th class="text-center" width="100"><input type="checkbox" value="" id="checkall" class=""> 全选</th>
                  <th>ID</th>
                  <th>姓名</th>
                  <th>邮件</th>
                  <th>电话</th>
                  <th>其他</th>
                  <th style="width: 20%">操作</th>
                </tr>

                <?php foreach($contact as $v): ?>
                <tr>

                  <td class="text-center"><input type="checkbox" value="<?php echo $v['c_id']; ?>" name="idarr[]" class="cbox"></td>
                  <td><?php echo $v['c_id']; ?></td>
                  <td><?php echo $v['username']; ?></td>
                  <td><?php echo $v['email']; ?></td>
                  <td><?php echo $v['phone']; ?></td>
                  <td><?php echo $v['other']; ?></td>
                  <td>
                    <a href="{:url('admin/contact/del',['id'=>$v['c_id']])}"><button type="button" class="btn btn-sm btn-danger glyphicon glyphicon-trash">  删除</button></a>
                  </td>
                </tr>
                <?php endforeach; ?>
                </tbody></table>
              <div class="pull-left" style="margin: 20px;">
                <button type="submit" class="btn btn-default btn-gradient pull-right delall"><span class="glyphicon glyphicon-trash"></span></button>
              </div>
              </form>
            </div>
            <!-- /.box-body -->
          </div>
          <!-- /.box -->
        </div>
      </div>


    </section>
    <!-- /.content -->
  </div>
